<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<!DOCTYPE html>
<html>
<head>
    <title>在线学习</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入bootstrap -->
    <link rel="stylesheet" type="text/css" href="${ctx}/css/bootstrap.min.css">
    <!-- 引入JQuery  bootstrap.js-->
    <script src="${ctx}/js/jquery-3.2.1.min.js"></script>
    <script src="${ctx}/js/bootstrap.min.js"></script>

</head>
<body>
<!-- 顶栏 -->
<jsp:include page="top.jsp"/>
<!-- 中间主体 -->
<div class="container" id="content">
    <div class="row">
        <jsp:include page="menu.jsp"/>
        <!--中间部分-->
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="row">
                        <table align="center" bgcolor=#cccccc>
                            <tr align="center">
                                <td><h3>${newsBean.title}</h3><hr style="color: black"/></td>

                            </tr>
                            <tr>
                                <td width="700">&emsp;&emsp;${newsBean.conetnt}</td>
                            </tr>

                            <tr>
                                <td><br/><br/><br/>作者:${newsBean.author}</td>
                            </tr>
                            <tr>
                                <td>发布时间:${newsBean.formatTime}</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="container" id="footer">
            <div class="row">
                <div class="col-md-12"></div>
            </div>
        </div>
</body>
<script type="text/javascript">
    <%--设置菜单中--%>
    $("#nav li:nth-child(5)").addClass("active")
    <c:if test="${pagingVO != null}">
    if (${pagingVO.curentPageNo} == ${pagingVO.totalCount}) {
        $(".pagination li:last-child").addClass("disabled")
    }
    ;

    if (${pagingVO.curentPageNo} == ${5}) {
        $(".pagination li:nth-child(5)").addClass("disabled")
    }
    ;
    </c:if>

    $("#sub").click(function () {
        $("#form1").submit();
    });
</script>

<style>

</style>
</html>

